package com.easy_buy.component;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class Receiver {
    private String text;

    @RabbitListener(queues = "买家留言")
    public void receiveMsg(String message) {
        this.text = message;
    }

    public String getText() {
        return this.text;
    }
}
